package com.whj.apidriver.controller;

import com.whj.apidriver.service.PointService;
import com.whj.internalcommon.dto.ResponseResult;
import com.whj.internalcommon.request.ApiPointRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: wanghaijun
 * @Date: 2023/1/20 - 01 - 20 - 16:52 
 * @Description: com.whj.apidriver.controller
 */

@RestController
@RequestMapping("/point")
public class PointController {

    @Autowired
    private PointService pointService;

    /**
     * 上传位置功能
     *
     * @param apiPointRequest
     * @return
     */
    @PostMapping("/upload")
    public ResponseResult upload(@RequestBody ApiPointRequest apiPointRequest){
        ResponseResult upload = pointService.upload(apiPointRequest);
        return upload;
    }
}
